package org.piggy.core.utils;

import java.util.concurrent.ExecutorService;

public class ThreadPoolUtil {

    private ThreadPoolUtil() {}

    private static class Holder {
        static final ThreadPoolUtil INSTANCE = new ThreadPoolUtil();
    }

    public static ThreadPoolUtil getInstance() {
        return Holder.INSTANCE;
    }

    private ExecutorService executorService;

    public ExecutorService getExecutorService() {
        return executorService;
    }

    public void setExecutorService(ExecutorService executorService) {
        this.executorService = executorService;
    }

}
